﻿// --------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="NGroup">
// Copyright (c) NGroup. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------
// <history>
//     <change who="Bui Thanh Nam" date="2015.01.03">Create</change>
// </history>
// --------------------------------------------------------------------------------------

namespace NGroup.VTL.ResourcesBuilderConsole
{
    using System;
    using NGroup.VTL.Resources.Concrete;

    /// <summary>
    /// Run this console application to generate Resource class for getting and setting languages.
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            var builder = new NGroup.VTL.Resources.Utility.ResourceBuilder();
            string filePath = builder.Create(new DbResourceProvider(@"Data Source=BOBD\MSSQL2012SP1;Initial Catalog=NGroup_VTL_DB;User ID=sa;Password=123open;Connect Timeout=5"),
                summaryCulture: "en");

            Console.WriteLine("Created file {0}", filePath);      
        }
    }
}
